package com.vision.sales.cm.data;

/**
 * 
 * @author Mark
 *
 */
public enum CollectionStatus {

	// NOTE: If you need to add a new enum constant, add it at the bottom of the
	// existing definitions. The ordinal value of the constants are saved in the
	// database. If you insert a constant in between the existing definitions
	// you will change the ordinal values of the constants below it and will most likely
	// experience problems matching the ordinal values in the database to the ones
	// in this enum.
	UNPAID("Unpaid"),
	PARTIALLY_PAID("Partially Paid"),
	FULLY_PAID("Fully Paid");
	
	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	private String displayText;
	
	private CollectionStatus(String displayText) {
		this.displayText = displayText;
	}
	
	@Override
	public String toString() {
		return displayText == null ? name() : displayText;
	}
	
}

